let {detailmsgTable}=require("./detailmsgTable")
module.exports={
    detailmsg(req,res){
        let {mId,msg,name}=req.body
        console.log(mId,msg,name)
        detailmsgTable.create({
            mId:mId,
            msg:msg,
            name:name
        }).then(data=>{
            res.send({
                code:200,
                msg:"文章页评论成功"
            })
        })
        .catch(()=>{
            res.send("服务器错误")
        })
        
    }
}